/**
 * @TODO
 * @Author xu
 * 2025/2/21
 */
public class work11 {
    public static void main(String[] args) {
        double distance = 5.0;
        double speedA = 1.0;
        double speedB = 2.0;

        double relativeSpeed = speedB - speedA;
        double timeToCatchUp = distance / relativeSpeed;

        System.out.println("B need" + timeToCatchUp + " 小时才能赶上 A。");
    }

}
